<?php

namespace app\apiadmin\service\redis;

use Predis\Client;

class RedisService
{
    private $redis;
    
    public function __construct()
    {
        //$tcpUrl = 'tcp://'.env('cache.host').':'.env('cache.port');
        $tcpUrl = 'tcp://172.28.179.129:6379';
        $tcpArray = [
            'scheme' => 'tcp',
            'host' => env('cache.host'),
            'port' => env('cache.port'),
            //'password' => env('cache.password'),
        ];
        $this->redis = new Client($tcpArray);
    }
    
    
}